|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbsh.BshMethod
This represents an instance of a bsh method declaration in a particular namespace. This is a thin wrapper around the BSHMethodDeclaration with a pointer to the declaring namespace.
When a method is located in a subordinate namespace or invoked from an arbitrary namespace it must nontheless execute with its 'super' as the context in which it was declared.
Method Summary | |
Modifiers |
getModifiers()
|
java.lang.String |
getName()
|
java.lang.String[] |
getParameterNames()
|
java.lang.Class[] |
getParameterTypes()
Get the argument types of this method. |
java.lang.Class |
getReturnType()
Get the return type of the method. |
boolean |
hasModifier(java.lang.String name)
|
java.lang.Object |
invoke(java.lang.Object[] argValues,
Interpreter interpreter)
Invoke the declared method with the specified arguments and interpreter reference. |
java.lang.Object |
invoke(java.lang.Object[] argValues,
Interpreter interpreter,
CallStack callstack)
Invoke the declared method with the specified arguments, interpreter reference, and callstack. |
java.lang.Object |
invoke(java.lang.Object[] argValues,
Interpreter interpreter,
CallStack callstack,
bsh.SimpleNode callerInfo)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.Class[] getParameterTypes()
public java.lang.String[] getParameterNames()
public java.lang.Class getReturnType()
public Modifiers getModifiers()
public java.lang.String getName()
public java.lang.Object invoke(java.lang.Object[] argValues, Interpreter interpreter) throws EvalError
EvalError
public java.lang.Object invoke(java.lang.Object[] argValues, Interpreter interpreter, CallStack callstack) throws EvalError
Note: this form of invoke() uses a null Node for the caller and a null node for the CallStack. This method is for scripts performing relective style access to scripted methods.
EvalError
public java.lang.Object invoke(java.lang.Object[] argValues, Interpreter interpreter, CallStack callstack, bsh.SimpleNode callerInfo) throws EvalError
EvalError
public boolean hasModifier(java.lang.String name)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |